-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break out a helper class from GenerateVisitor annotation processor. #3060
Conversation
This allows service loading all annotation processors and even determining that this one does not apply, without having javapoet in the classpath.
Result of fdb-record-layer-pr on Linux CentOS 7
|
Result of fdb-record-layer-pr on Linux CentOS 7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. The underlying error is a bit esoteric, but I think the idea that we should be able to construct the Processor
to at least determine which annotations it processes without requiring external dependencies seems pretty defensible. We may also consider taking this on to the 4.0.559 branch
...tations/src/main/java/com/apple/foundationdb/annotation/GenerateVisitorAnnotationHelper.java
Outdated
Show resolved
Hide resolved
import java.util.stream.Collectors; | ||
|
||
@SuppressWarnings("PMD.GuardLogStatement") // confused by error invocation | ||
class GenerateVisitorAnnotationHelper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should probably be a javadoc comment here explaining why this is a separate class from GenerateVisitorAnnotationProcessor
, mostly to avoid us from doing some "harmless refactoring" in the future and putting the two classes back together again. (Likewise, we should call this out in the release notes.)
…tation/GenerateVisitorAnnotationHelper.java Co-authored-by: Alec Grieser <[email protected]>
Result of fdb-record-layer-pr on Linux CentOS 7
|
Result of fdb-record-layer-pr on Linux CentOS 7
|
…oundationDB#3060) * Break out a helper class from GenerateVisitor annotation processor. This allows service loading all annotation processors and even determining that this one does not apply, without having javapoet in the classpath.
This allows service loading all annotation processors and even determining that this one does not apply, without having javapoet in the classpath.